package com.zxw.java基础.常用;

/**
 * @projectName: util-cloud
 * @package: com.zxw.java基础.常用
 * @className: GetByte
 * @author: zhangxuewei
 * @description: TODO
 * @date: 2023/11/10 16:58
 * @version: 1.0
 */
public class GetByte {

    public static void main(String[] args) {
        String a = "1";
        String a1 = "2";
        String b = "a";
        for (int i = 0; i < a.getBytes().length; i++) {
            System.out.println(a.getBytes()[i]);
        }
        for (int i = 0; i < a1.getBytes().length; i++) {
            System.out.println(a1.getBytes()[i]);
        }

        System.out.println("-----------------");
        for (int i = 0; i < b.getBytes().length; i++) {
            System.out.println(b.getBytes()[i]);
        }
    }
}
